dfe65a73b0f7c07578aaee275b525349726f2c48,camel-core/src/main/java/org/apache/camel/converter/stream/CachedOutputStream.java,CachedOutputStream,write,#number#,333

Before Change


    }

    public void write(int b) throws IOException {
        if (!outputLocked) {
            onWrite();
            this.totalLength++;
            if (inMemory && totalLength > threshold && currentStream instanceof ByteArrayOutputStream) {
                createFileOutputStream();

After Change


            pageToFileStream();
        }
        currentStream.write(b);
        flush();
    }

    public InputStream getInputStream() throws IOException {